<template>
	<view>
		<web-view :src="syjc"></web-view>

	</view>
</template>



<script>
	import {
		getwem
	} from '@/api/api'
	export default {
		data() {
			return {
				syjc: "",
				type: ""
			}
		},
		onLoad(options) {
			this.type = options.type
			console.log('页面类型:', this.type)
			this.getwem()
		},
		methods: {
			getwem() {
				getwem().then(res => {
					if (this.type == "syjc") {
						this.syjc = res.data.syjc
						return
					}else if (this.type == "kqjc") {
					 	this.syjc = res.data.kqjc
					 	return
					 }else {
						this.syjc = res.data.sbpw
						return
					}
				})
			}
		}
	}
</script>